<template>
  <ModalAlias :closable="closable"
              :keyboard="keyboard"
              :maskClosable="maskClosable"
              v-bind="$attrs">

    <template v-for="(value,key,index) in $slots"
              v-slot:[key]="data"
              :key="index">
      <slot :name="key"
            v-bind="data"></slot>
    </template>

  </ModalAlias>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { Modal as ModalAlias } from 'ant-design-vue';
import config from './config';
export default defineComponent({
  name: 'AModal',
  components: { ModalAlias },
  setup() {
    return { ...config.props };
  }
});
</script>